<template>
  <div id="wrap">
      <div>这是wrap组件</div>
      <wrapBox @swiperData="ev_wrap" :imgText="imgText"></wrapBox>
  </div>
</template>
<script>

import wrapBox from './index.vue'

export default {
  data() {
    return {
        imgText:'',
        textData:['图片1','图片2','图片3']
    };
  },
  components: {
    wrapBox,
  },
  methods:{
      ev_wrap(data){
        this.imgText = this.textData[data.index]
      }
  }
};
</script>
<style lang="less" scoped>
*{
  font-size: .5rem;
}
</style>
